---
layout: example
category: example
title: Display a map
description: Initialize a map in an HTML element with Mapbox GL JS.
permalink: /examples/
tags:
  - styles
---
<div id='map'></div>
<script>
var map = new mapboxgl.Map({
    container: 'map', // container id
    style: 'mapbox://styles/mapbox/streets-v9', //stylesheet location
    center: [-74.50, 40], // starting position
    zoom: 9 // starting zoom
});
</script>
